﻿namespace Creek.UI.EFML.Base.CSS.Converters
{
    using System;

    public class EnumConverter
    {
        #region Public Methods and Operators

        public static T Convert<T>(string s)
        {
            return (T)Enum.Parse(typeof(T), s);
        }

        public static object Convert(Type t, string s)
        {
            return Enum.Parse(t, s);
        }

        #endregion
    }
}